package com.fm.mediasoup;

public class Producer {
    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public Webrtc getWebrtc() {
        return webrtc;
    }

    public void setWebrtc(Webrtc webrtc) {
        this.webrtc = webrtc;
    }


    private String id;
    private Webrtc webrtc;

    public String getVProducerId() {
        return vProducerId;
    }

    public void pauseAudio(){
        this.webrtc.stopAudioTrack();
    }

    public void resumeAudio(){
        this.webrtc.startAudioTrack();
    }

    public void pauseVideo(){
        this.webrtc.stopVideoTrack();
    }

    public void resumeVideo(){
        this.webrtc.startVideoTrack();
    }

    public void resetVideo(int width, int height, int fps){
        this.webrtc.resetVideoTrack(width, height, fps);
    }

    public void setVProducerId(String vProducerId) {
        this.vProducerId = vProducerId;
    }

    public String getAProducerId() {
        return aProducerId;
    }

    public void setAProducerId(String aProducerId) {
        this.aProducerId = aProducerId;
    }

    private String vProducerId;
    private String aProducerId;

}
